package com.example.elderlycare.controller.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

public class OutRecordRequestBody {
    @Data
    public static class addOutRecord {
        private Integer checkRecordId;

        private String escortName;
        private String escortPhone;
        private Integer isRefund;
        @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date outDate;
        @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date planReturnDate;
        private String reason;
        private String transactor;
    }

    @Data
    public static class updateOutRecord {
        private Integer id;
        private String escortName;
        private String escortPhone;
        private Integer isRefund;
        @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date realReturnDate;
        @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date refundDate;
        private String reason;
        private String transactor;
    }
}
